#pragma once

#include <gdiplus.h>

// CtlButton
namespace bdc{
	
	namespace ctl{

		class CtlButton : public CButton
		{
			DECLARE_DYNAMIC(CtlButton)
		private:
			bool isMouseIn;
			Gdiplus::Image* pImgBg;

		public:
			CtlButton();
			virtual ~CtlButton();

		protected:
			DECLARE_MESSAGE_MAP()

		protected:
			virtual void DrawItem(LPDRAWITEMSTRUCT /*lpDrawItemStruct*/);
			afx_msg void OnMouseMove(UINT nFlags, CPoint point);
			afx_msg void OnMouseLeave();

		public:
			void setBgImg(Gdiplus::Image*);
		};
	}
}


